Skip to main content
POST
/
api
/
portrait
/
editing
/
try-on-clothes
Try on Clothes
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/editing/try-on-clothes \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form task_type=async \
  --form person_image='@example-file' \
  --form clothes_image='@example-file' \
  --form 'clothes_type=<string>'
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_type": "",
  "task_id": ""
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
task_type
string

Task Type.

  • async: Asynchronous tasks.
  • Example:

    "async"

    person_image
    file

    Portrait image.

    clothes_image
    file

    Clothing image.

    clothes_type
    string

    Clothing Types.

  • upper_body: Upper body clothing.
  • lower_body: Lower body clothing.
  • full_body: Full body clothing.
  • Response

    200 - application/json

    Success

    The response is of type object.